import java.awt.Color;
public class Chess {  //棋子类
    private int x;   //棋子的x坐标
    private int y;   //棋子的y坐标
    private Color color; //棋子颜色
    public static int DIAMETER=30; //棋子直径，常量
    public Chess(int x,int y,Color color){  //构造方法
        this.x=x;
        this.y=y;
        this.color=color;
    }
    public int getX() {
        return x;
    }
    public int getY() {
        return y;
    }
    public Color getColor() {
        return color;
    }
}
